-- GENERATED SPELL FOR [Vekgar] --


function spell0_29146(pUnit, Event) --@Jump Attack,n/a--
pUnit:FullCastSpellOnTarget(54487,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29146', 653, 1)
end

function spell1_29146(pUnit, Event) --@Killing Rage,Self--
pUnit:FullCastSpellOnTarget(52071,pUnit)
pUnit:RegisterEvent('Sorts_29146', 6305, 1)
end

function Sorts_29146(pUnit, Event)
local choix_sorts_29146 = math.random(0, 1)
if choix_sorts_29146 == 0 then
pUnit:RegisterEvent('spell0_29146', 1, 1)
end
if choix_sorts_29146 == 1 then
pUnit:RegisterEvent('spell1_29146', 1, 1)
end
end

function mob29146_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29146', math.random(1500, 3000), 1)
end

function mob29146_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29146_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29146_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29146, 1, 'mob29146_Action')
RegisterUnitEvent(29146, 2, 'mob29146_Leave')
RegisterUnitEvent(29146, 3, 'mob29146_Kill')
RegisterUnitEvent(29146, 4, 'mob29146_Die')
